package com.zyong.design.pattern.state.case3;

/**
 * 待付款
 * @program: zyong-design-pattern
 * @ClassName: NotPayState
 * @author: zyong
 * @create: 2024-03-24 22:10
 */
public class NotPayState extends AbstractState {
    @Override
    public void payOrderEvent(Context context) {
        context.setState(new PaidState());
    }

    @Override
    public void feedBackEvent(Context context) {
        context.setState(new FeedBackState());
    }

    @Override
    public String getCurrentState() {
        return StateEnum.NOT_PAYED.getValue();
    }
}
